package com.itheima.health.security;

import com.itheima.health.pojo.Role;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SecurityUser implements Serializable {
    private Integer id;
    private String username;
    private String password;
    //角色
    private Set<Role> roles = new HashSet<Role>(0);//对应角色集合
}
